Loading = function(options){
	var _options = {};
	$.extend(_options,this._options,options);
	$.extend(this,{
		_options:_options
	});
	this._init();
};
Loading.prototype = {
	_options:{
		img:null,
		height:92,
		width:92,
		target:window.document.body
	},
	_mask:null,
	//----------------------------------------------------------------------------------------------//初始化
	_init:function(){
		this._mask =  new Mask({
			isEsc:false,
			target:this._options.target
		});
	},
	//----------------------------------------------------------------------------------------------//打开
	open:function(){
		var img = document.createElement("img");
		img.setAttribute("src", this._options.img);
		img.setAttribute("width", this._options.height);
		img.setAttribute("height", this._options.width);
		img.style.height = this._options.height+"px";
		img.style.width = this._options.width+"px";
		this._mask.open(img);
	},
	//----------------------------------------------------------------------------------------------//关闭
	close:function(){
		this._mask.close();
	}
};